import request from '@/utils/request'

// 添加分类属性
export function addProperty(data) {
  return request({
    url:'/tmall_springboot/properties',
    method:'post',
    data:data,
  })
}


// 获取分类属性
export function getProperties(params) {
  return request({
    url:'/tmall_springboot/categories/properties',
    method:'get',
    params:params,
  })
}


// 更新分类属性
export function editProperty(data) {
  return request({
    url:'/tmall_springboot/properties/update',
    method:'post',
    data:data,
  })
}

// 删除分类属性
export function deleteProperty(data) {
  return request({
    url:'/tmall_springboot/properties/del',
    method:'post',
    data:data,
  })
}